﻿using System.Collections;
using System.Windows.Controls;
using DragDropTest;

namespace FileUploader {
    public partial class DragableListBox{
        public event SelectionChangedEventHandler SelectionChanged;
        public DragableListBox() {
            InitializeComponent();
            //ItemsBox.ItemsSource = DemoData.GetData();
            ItemsBox.SelectionChanged += ItemsBox_SelectionChanged;
            
        }
        public ListBox InnerListBox{
            get { return ItemsBox; }
        }
        public IEnumerable ItemsSource
        {
            get { return ItemsBox.ItemsSource; }
            set { ;}
            //            set { ItemsBox.ItemsSource = value; }
        }

        public IList SelectedItems{
            get { return ItemsBox.SelectedItems; }
            
        }

        void ItemsBox_SelectionChanged(object sender, SelectionChangedEventArgs e)
        {
            if(SelectionChanged != null){
                SelectionChanged(sender, e);
            }
        }

        private void ListBoxDragDropTarget_Drop(object sender, Microsoft.Windows.DragEventArgs e)
        {

        }
    }
}
